<?php
require_once('dao.php');


//dirty implementation; improve it if find times
//dirty impl start
$mm1 = DAOFactory::getMainMenuDAO()->load(1);

$mh1 = DAOFactory::getMainHeadingDAO()->load($mm1->mH);
$l11 = DAOFactory::getUrlLinkDAO()->load($mm1->link1);
$l21 = DAOFactory::getUrlLinkDAO()->load($mm1->link2);

$mm2 = DAOFactory::getMainMenuDAO()->load(2);
$mh2 = DAOFactory::getMainHeadingDAO()->load($mm2->mH);
$l12 = DAOFactory::getUrlLinkDAO()->load($mm2->link1);
$l22 = DAOFactory::getUrlLinkDAO()->load($mm2->link2);

$mm3 = DAOFactory::getMainMenuDAO()->load(3);
$mh3 = DAOFactory::getMainHeadingDAO()->load($mm3->mH);
$l13 = DAOFactory::getUrlLinkDAO()->load($mm3->link1);
$l23 = DAOFactory::getUrlLinkDAO()->load($mm3->link2);

$mm4 = DAOFactory::getMainMenuDAO()->load(4);
$mh4 = DAOFactory::getMainHeadingDAO()->load($mm4->mH);
$l14 = DAOFactory::getUrlLinkDAO()->load($mm4->link1);
$l24 = DAOFactory::getUrlLinkDAO()->load($mm4->link2);

$mm5 = DAOFactory::getMainMenuDAO()->load(5);
$mh5 = DAOFactory::getMainHeadingDAO()->load($mm5->mH);
$l15 = DAOFactory::getUrlLinkDAO()->load($mm5->link1);
$l25 = DAOFactory::getUrlLinkDAO()->load($mm5->link2);
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Designinfo.se - Kenneth  sterlin</title>
        
        <link href="css/style.css" rel="stylesheet" type="text/css" />
		
	</head>
	<body>
		<div class="header">
			<div class="header_container">
				<a href="index.php">
					<img src="<?php echo $sess->TVar('images/logo_en.png','images/logo.png')?>" id="logo" />
				</a>
				<div class="buttons_wrapper">
					<a class="home_button" href="index.php"></a>
					
                                        <a class="<?php echo $sess->TVar('sv_flag','sv_flag_selected') ?>" href="?lang=<?php echo SV ?>"></a>
					<a class="<?php echo $sess->TVar('en_flag_selected','en_flag') ?>" href="?lang=<?php echo EN ?>"></a>
                                       
				</div>
				<table>
					<tr>
						<td><?php echo $sess->TVar($mh1->textEn,$mh1->textSv); ?>: <a href="information.php"><?php echo $sess->TVar($l11->linkEn,$l11->linkSv); ?> </a> <a href="kontakt.php"><?php echo $sess->TVar($l21->linkEn,$l21->linkSv); ?> </a></td>
						<td><?php echo $sess->TVar($mh2->textEn,$mh2->textSv); ?>: <a href="aktuelt.php"><?php echo $sess->TVar($l12->linkEn,$l12->linkSv); ?></a>   <a href="arkiv.php"><?php echo $sess->TVar($l22->linkEn,$l22->linkSv); ?></a></td>
						<td><?php echo $sess->TVar($mh3->textEn,$mh3->textSv); ?>: <a href="strategi.php"><?php echo $sess->TVar($l13->linkEn,$l13->linkSv); ?></a>   <a href="immate.php"><?php echo $sess->TVar($l23->linkEn,$l23->linkSv); ?></a></td>
						<td><?php echo $sess->TVar($mh4->textEn,$mh4->textSv); ?>: <a href="forelasningar.php"><?php echo $sess->TVar($l14->linkEn,$l14->linkSv); ?></a>   <a href="bocker.php"><?php echo $sess->TVar($l24->linkEn,$l24->linkSv); ?></a></td>
						<td><?php echo $sess->TVar($mh5->textEn,$mh5->textSv); ?>: <a href="forum.php"><?php echo $sess->TVar($l15->linkEn,$l15->linkSv); ?></a>   <a href="vada_design.php"><?php echo $sess->TVar($l25->linkEn,$l25->linkSv); ?></a></td>
					</tr>
				</table>
			</div>
		</div>
		<div id="header_shadow"></div>